import request from '@/utils/request'

// 查询停车收费记录列表
export function listFeerecord(query) {
  return request({
    url: '/park/feerecord/list',
    method: 'get',
    params: query
  })
}

// 查询停车收费记录详细
export function getFeerecord(feeRecordId) {
  return request({
    url: '/park/feerecord/' + feeRecordId,
    method: 'get'
  })
}

// 新增停车收费记录
export function addFeerecord(data) {
  return request({
    url: '/park/feerecord',
    method: 'post',
    data: data
  })
}

// 修改停车收费记录
export function updateFeerecord(data) {
  return request({
    url: '/park/feerecord',
    method: 'put',
    data: data
  })
}

// 删除停车收费记录
export function delFeerecord(feeRecordId) {
  return request({
    url: '/park/feerecord/' + feeRecordId,
    method: 'delete'
  })
}
